package cn.northsea.service.impl;

import cn.northsea.mapper.SupplierMapper;
import cn.northsea.pojo.Supplier;
import cn.northsea.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;
    @Override
    public List<Supplier> getList(String supName) {
        return supplierMapper.getList(supName);
    }

    @Override
    public int insertSupplier(Supplier supplier) {
        return supplierMapper.insertSupplier(supplier);
    }

    @Override
    public int updateSupplier(Supplier supplier) {
        return supplierMapper.updateSupplier(supplier);
    }

    @Override
    public Supplier getSupplier(Integer supplierId) {
        return supplierMapper.getSupplier(supplierId);
    }

    @Override
    public void deleteSupplier(Integer[] ids) {
        supplierMapper.deleteSupplier(ids);
    }
}
